<div class = "dbManager-container clearfix">

<div id = "nav-slider" class = "fl br">
<!--数据的添加-->
    <div class = "pl15 bb pb10 mt10 dataSourceMenu clearfix">
        <div class="fl toper"><i ng-click="delSource()" class="minus circle icon cp popup" data-content = "数据源管理"></i>数据源:</div>
        <div class = "ui dropdown fl">
            <div class = "text">{{dataSources[dataSources.length-1].sourceDesc}}</div>
            <i class = "dropdown icon"></i>
            <div class = "menu">
                <div class = "item"  ng-repeat = "source in dataSources" tabindex="{{$index}}" ng-click = "changeSource($index)">{{source.sourceDesc}}</div>
            </div>
        </div>
        <div class="fr">
            <i class = "database icon cp popup" data-content="添加数据源"  ng-click = "addNewSource()"></i>
            <i class = "plus icon cp popup" data-content="添加数据源" ng-click = "addNewSource()"></i>
        </div>
    </div>
    <div class = "tr mt10">
        <i class = "file icon cp popup" ng-click = "addNewFile()" data-content = "添加数据文件"></i>
        <i class = "plus icon cp popup"  data-content = "添加数据文件" ng-click = "addNewFile()"></i>
        <i class = "browser icon cp popup"  data-content = "添加新数据表" ng-click = "addTable()"></i>
        <i class = "plus icon cp popup"  data-content = "添加新数据表" ng-click = "addTable()"></i>
    </div>
<!--数据-->
    <div class = "pl15" id = "slider-list">
        <div class = "ui list" id="myDataList">

            <!-- 数据库源数据 -->
            <div class = "item mt10 myDataList" id="sjk">
                <i class = "database icon f16"></i>
                <div class = "content" style="min-width: 200px;">
                    <div class = "header f16 cp" ng-click = "base_tables_shown = !base_tables_shown">
                        <span>数据库源数据</span>
                        <i class = "" ng-class = "{caret : true,down : !base_tables_shown,up : base_tables_shown,icon : true}"></i>
                    </div>
                    <div class = "list" ng-show = "base_tables_shown">
                        <!--Ibm的table表-->
                        <div class = "item mb5 cp" ng-repeat = "item in dbTables.base"  ng-drag ng-drag-data='{"tbId":"{{item.tbId}}","tableType":"{{item.tableType}}","tableDesc":"{{item.tableDesc}}","dataType":"Table"}'  ng-click = "getDbTableDatas(item.tbId,item.tableType,item.tableDesc,'Ibm',$event)" title="{{item.tableDesc || item.tableName}}">
                            <i class = "table icon"></i>
                            <div class = "content">
                                <div class = "header popup" data-content="点击或拖拽">{{item.tableDesc || item.tableName}} </div>
                            </div>

                            <i class="caret right icon" ng-click="showMyTableMenu($index,$event,'base')" style="padding: 0 4px;"></i>

                            <!--<i class="remove icon" ng-click="delTable(item.tbId,item.tableType,'Ibm')" ></i>-->
                        </div>
                    </div>
                </div>
            </div>

            <!-- 关联关系数据 -->
           <!-- <div class = "item mt10 myDataList" id="glgx">
                <i class = "database icon"></i>
                <div class = "content" style="min-width: 200px;">
                    <div class = "header f16 cp" ng-click = "relation_tables_shown = !relation_tables_shown">
                        <span>关联关系数据</span>
                        <i class = "" ng-class = "{caret : true,down : !relation_tables_shown,up : relation_tables_shown,icon : true}"></i>
                    </div>
                    <div class = "list" ng-show = "relation_tables_shown">
                        <div class = "item mb5 cp" ng-repeat = "item in dbTables.relation" ng-click = "getDbTableDatas(item.tbId,item.tableType,item.tableDesc,'Rel',$event)" title="{{item.tableDesc || item.tableName}}" ng-drag ng-drag-data='{"tbId":"{{item.tbId}}","tableType":"{{item.tableType}}","tableDesc":"{{item.tableDesc}}","dataType":"Table"}'>
                            <i class = "table icon"></i>
                            <div class = "content">
                                <div class = "header popup" data-content="点击或拖拽">{{item.tableDesc || item.tableName}}</div>
                            </div>
                            <i class="caret right icon" ng-click="showMyTableMenu($index,$event,'relation')" style="padding: 0 4px;"></i>
                            <i class="remove icon" ng-click="delTable(item.tbId,item.tableType,'Rel')"></i>
                        </div>
                    </div>
                </div>
            </div>-->

            <!--多表关联数据-->
             <div class = "item mt10 myDataList" id="dbgl">
                 <i class = "database icon"></i>
                 <div class = "content" style="min-width: 200px;">
                     <div class = "header f16 cp" ng-click = "mulRelation_tables_shown = !mulRelation_tables_shown">
                         <span>多表关联数据</span>
                         <i class = "" ng-class = "{caret : true,down : !mulRelation_tables_shown,up : mulRelation_tables_shown,icon : true}"></i>
                     </div>
                     <div class = "list" ng-show = "mulRelation_tables_shown">
                         <div class = "item mb5 cp" ng-repeat = "item in dbTables.mulRelation" ng-drag ng-drag-data='{"tbId":"{{item.tbId}}","tableType":"{{item.tableType}}","tableDesc":"{{item.tableDesc}}","dataType":"Table"}' ng-click = "getDbTableDatas(item.tbId,item.tableType,item.tableDesc,'mulRel',$event)" title="{{item.tableDesc || item.tableName}}">
                             <i class = "table icon"></i>
                             <div class = "content">
                                 <div class = "header popup" data-content="点击或拖拽">{{item.tableDesc || item.tableName}}</div>
                             </div>
                             <i class="caret right icon" ng-click="showMyTableMenu($index,$event,'mulRelation')" style="padding: 0 4px;"></i>
                             <!--<i class="remove icon" ng-click="delTable(item.tbId,item.tableType,'mulRel')" ></i>-->
                         </div>
                     </div>
                 </div>
             </div>

            <!-- 分类汇总数据 -->
            <div class = "item mt10 myDataList" id="flhz">
                <i class = "database icon"></i>
                <div class = "content" style="min-width: 200px;">
                    <div class = "header f16 cp" ng-click = "aggregation_tables_shown = !aggregation_tables_shown">
                        <span>分类汇总数据</span>
                        <i class = "" ng-class = "{caret : true,down : !aggregation_tables_shown,up : aggregation_tables_shown,icon : true}"></i>
                    </div>
                    <div class = "list" ng-show = "aggregation_tables_shown">
                        <div class = "item mb5 cp" ng-repeat = "item in dbTables.aggregation" ng-drag ng-drag-data='{"tbId":"{{item.tbId}}","tableType":"{{item.tableType}}","tableDesc":"{{item.tableDesc}}","dataType":"Table"}' ng-click = "getDbTableDatas(item.tbId,item.tableType,item.tableDesc,'Agg',$event)" title="{{item.tableDesc || item.tableName}}">
                            <i class = "table icon"></i>
                            <div class = "content">
                                <div class = "header popup" data-content="点击或拖拽">{{item.tableDesc || item.tableName}}</div>
                            </div>
                            <i class="caret right icon" ng-click="showMyTableMenu($index,$event,'aggregation')" style="padding: 0 4px;"></i>
                            <!--<i class="remove icon" ng-click="delTable(item.tbId,item.tableType,'Agg')" ></i>-->
                        </div>
                    </div>
                </div>
            </div>

            <!--上传的数据-->
            <div class = "item mt10 myDataList" id="yhsc">
                <i class = "database icon"></i>
                <div class = "content" style="min-width: 200px;">
                    <div class = "header f16 cp" ng-click = "file_tables_shown = !file_tables_shown">
                        <span>上传文件数据</span>
                        <i class = "" ng-class = "{caret : true,down : !file_tables_shown,up : file_tables_shown,icon : true}"></i>
                    </div>
                    <div class = "list mySingleList" ng-show = "file_tables_shown">
                        <div class = "item mb5 cp" ng-repeat = "item in dbTables.filetable" ng-drag ng-drag-data='{"tbId":"{{item.tbId}}","tableType":"{{item.tableType}}","tableDesc":"{{item.tableDesc}}","dataType":"Table"}' ng-click = "getDbTableDatas(item.tbId,item.tableType,item.tableDesc,'File',$event)" title="{{item.tableDesc || item.tableName}}">
                            <i class = "table text icon"></i>
                            <div class = "content">
                                <div class = "header popup" data-content="点击或拖拽">{{item.tableDesc || item.tableName}}</div>
                            </div>
                            <i class="caret right icon" ng-click="showMyTableMenu($index,$event,'filetable')" style="padding: 0 4px;"></i>
                            <!--<i class="remove icon" ng-click="delTable(item.tbId,item.tableType,'File')" ></i>-->
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="rightBox">

    <!--表的关联-->
    <div class = "bb pr tableLink" ng-drop size="260">
        <!--拉伸-->
        <i class="expand icon popup cp" data-content="" ng-click="sizeChangeDiv('.tableLink','max')" ng-show="maxSize&&tablesCard.length>0"></i>
        <i class="compress icon popup cp" data-content="" ng-click="sizeChangeDiv('.tableLink','min')" ng-show="!maxSize"></i>

        <h1 class="ui red tishi" style="display: none;">拖拽到此目标区域</h1>
        <div class="linkAreaCard " ng-hide="table1" style="left: 12px;top:13px;display: none;width:180px "  ng-repeat="item in tablesCard" ng-drop dropIndex="{{$index}}">
            <!-- icon area -->
            <div class="myIcon">
                <i class="icon move popup" data-content="拖拽可移动" style="cursor: move;padding: 0 4px;" ng-mousedown="linkCardMove($event,$index)"></i>
                <i class="icon linkify cp popup" data-content="拖拽到关联目标" style="padding: 0 4px;" ng-drag ng-drag-data='{"dragIndex":"{{$index}}","dataType":"link"}' title="关联"></i>
            </div>
            <!--table area-->
            <div class="linkAreaCard_box">
                <i ng-class="{'chevron circle down icon fl cp':tablesCard[$index].isShow,'chevron circle right icon fl cp':!tablesCard[$index].isShow}" ng-click="tablesCard[$index].isShow = !tablesCard[$index].isShow"></i>
                <span class="checkConSpan"><i class="table icon"></i>{{item.table.tableDesc}}</span>
                <div class="ui dropdown" style="top:-15px">
                    <i class = "dropdown icon"></i>
                    <div class = "menu">
                        <div class = "item" ng-click = "LinktableNameRename($index)">重命名</div>
                        <div class = "item" ng-click = "LinkremoveTable($index)">移除</div>
                        <!--<div class = "item" ng-click = "LinktableAggregate($index)">汇总</div>-->
                    </div>
                </div>
            </div>
            <!--字段list-->
            <ui class="linkCrad_list" ng-show="tablesCard[$index].isShow">
                <li ng-repeat="columns in tablesCard[$index].columns | orderBy: 'selected':true track by $index" ng-show="columns.isShow">
                    <div class="ui checkbox" title="{{columns.columnDesc}}">
                        <input  type="checkbox" ng-checked = "columns.selected" ng-model="columns.selected">
                        <label>&nbsp;{{columns.columnDesc}}</label>
                    </div>
                </li>
            </ui>

        </div>

        <!--关联后弹出的界面-->
        <div id="linkPanel" style="left: 0px;top: 90px;" ng-init="panelShow = false" ng-show="panelShow">
            <div class = "header">
                表关联<i class = "close icon fr cp" ng-click="panelShow = false"></i>
            </div>
            
            <div class = "tableConnect" style="width: 100%;" >
                <div class = "connect-img">
                    <div style="margin-left: 42px" ng-class = "{'column-item cp leftJoin'  : true,'active' : joinType == 'leftJoin'}" title = "左连接" ng-click = "joinType = 'leftJoin'"></div>
                    <div ng-class = "{'column-item cp innerJoin' : true,'active' : joinType == 'innerJoin'}" title = "中间连接" ng-click = "joinType = 'innerJoin'"></div>
                    <div ng-class = "{'column-item cp rightJoin' : true,'active' : joinType == 'rightJoin'}" title = "右连接" ng-click = "joinType = 'rightJoin'"></div>
                    <div style="display: none" ng-class = "{'column-item cp outerJoin' : true,'active' : joinType == 'outerJoin'}" title = "外连接" ng-click = "joinType = 'outerJoin'"></div>
                </div>
                <div class="connectTableDesc clearfix">
                     <div class="desc fl tc"><p title="{{linkPanel.dragTableDesc}}"><i class="table icon"></i>{{linkPanel.dragTable.tableDesc}}</p></div>
                     <div class="fl tc"><i class="linkify icon"></i></div>
                     <div class="desc fl tc"><p title="{{linkPanel.dropTableDesc}}"><i class="table icon"></i>{{linkPanel.dropTable.tableDesc}}</p></div>
                </div>
                <div class = "connect-filed">

                    <div class="tr clearfix" ng-repeat="item in dataFileds track by $index">
                        <div class="fl" style="width: 42%;padding-left:4px;">
                            <select class="myselect" ng-model="dataFileds[$index].left">
                                <option value="{{filed.columnId}}" ng-repeat="filed in linkPanel.dragField" ng-show="filed.isShow">
                                    {{filed.columnDesc}}
                                </option>
                            </select>
                           <!-- <select style="width:100%;padding:4px;height:26px;line-height:26px;" class="ui fluid" ng-model="dataFileds[$index].left"  ng-options="filed.columnId as filed.columnDesc for filed in linkPanel.dragField" >
                            </select>-->
                        </div>
                        <div class="fl" style="width:5%;height:30px;vertical-align: middle;">=</div>
                        <div style = "width: 42%;float: left; padding-left:4px;">
                            <select class="myselect" ng-model="dataFileds[$index].right">
                                <option  value="{{filed.columnId}}" ng-repeat="filed in linkPanel.dropField" ng-show="filed.isShow">{{filed.columnDesc}} </option>
                            </select>
                            <!--<select style="width:100%;padding:4px;height:26px;line-height:26px;" class="ui fluid" ng-model="dataFileds[$index].right" ng-options="filed.columnId as filed.columnDesc for filed in linkPanel.dropField" >
                            </select>-->
                        </div>
                        <div style="width:10%;padding-left:4px;" class="fl clearfix" >
                            <i class = "minus circle icon cp fl" ng-click = "lessSum($index)"></i>
                            <i class = "add circle icon cp fl" ng-click = "addSum($index)" ng-show="$last"></i>
                        </div>
                    </div>
                </div>
            </div>
           
            <div style = "color: red;padding: 10px;" ng-show="msg">提示：{{msg}}</div>
            <div class = "actions" style="text-align:right;padding:0px 4px 4px;">               
                <button class = "ui button red mini" ng-click = "okMulRel()" ng-disabled="okStuff">关联</button>
            </div>
        </div>



        <!--汇总表的按钮-->
        <!--<div ng-show = "aggregateAble" class = "actions" style = "width:220px;height:50px;right:30px;bottom:20px;position: absolute">
            <button class = "ui button red pa" ng-click = "saveAggregatetable()" style = "margin-left: 80px;">保存该汇总表</button>
            <button class = "ui button pa" ng-click = "cancelAggregatetable()">取消</button>
        </div>-->


        <!--9关联表的按钮-->
        <div ng-show = "mulRelationAble" class = "actions" style = "width:182px;height:50px;right:30px;top:15px;position: fixed;">
            <button class = "ui button red pa" ng-click = "saveMulRelationtable()" style = "margin-left: 80px;">保存</button>
            <button class = "ui button pa" ng-click = "cancelMulRelationtable()">取消</button>
        </div>
        <!--取消9关联-->
        <div ng-show = "tablesCard[0].table.tbId &&!mulRelationAble && !relationAble" class = "actions" style = "width:78px;height:50px;right:60px;top:15px;position: fixed;">
            <button class = "ui button pa" ng-click = "cancelMulConLink()">清空</button>
        </div>

        <div class="clearfix tableReader">

            <!--table1-->
            <div class="linkAreaCard_box" ng-show="table1">
                <span class="checkConSpan"><i class="table icon"></i>{{table1.tableName}}</span>
                <div class="ui dropdown" style="top:-15px">
                    <i class = "dropdown icon"></i>
                    <div class = "menu">
                        <div class = "item" ng-click = "tableNameRename(1)">重命名</div>
                        <div class = "item" ng-click = "tableAggregate()">分类汇总</div>
                        <div class = "item" ng-click="editTable()" ng-show="table1.dataType=='Agg'&& !aggregateAble">编辑</div>
                        <div class = "item" ng-click = "removeTable(1)">移除</div>
                    </div>
                </div>
            </div>

        </div>
    </div>


    <!--菜单条-->
    <div class="w mt15 tool clearFix">

        <!--<a class="cp layout" ng-click="tableListLayout(0)" ng-class="{'layoutCur':tableLayout.tableLayout}"><i class = "grid layout icon"></i></a>-->
        <!--后续功能 待开发-->
        <!--<a class="cp layout" ng-click="tableListLayout(1)" ng-class="{'layoutCur':tableLayout.thLayout}"><i class = "list layout icon"></i></a>-->
        
       
        <!--全部隐藏-->
       <!-- <div class = "ui checkbox mr20 linkHideF" ng-show="mulrelationDataTbId">
            <input type = "checkbox" name = "hideAll">
            <label class="cp" style="font-size: 12px;line-height: 34px;">全部隐藏</label>
        </div>-->
        <!--<div class = "ui dropdown">
            <span style = "margin-left: 6px;">下载<i class = "download icon"></i></span>
            <div class = "menu">
                <div class = "item" ng-click="exportTo('sql')"><i class="file outline icon"></i>Sql</div>
                <div class = "item" ng-click="exportTo('excel')"><i class="file excel outline icon"></i>Excel</div>
                <div class = "item" ng-click="exportTo('doc')"><i class="file word outline icon"></i>Word</div>
            </div>
        </div>-->

        <!--显示几行记录-->
        <div class="fr">
            <label>记录条数</label>
            <div class="ui mini icon input">
                <input type="text" placeholder="Rows" id="changeTableRowsValue" ng-keydown="rowsKeyDown($event)" style="max-width: 80px;">
                <i class="circular search link icon" ng-click="rowsChange()"></i>
            </div>
        </div>

        <!--显示隐藏字段-->
        <div class = "ui hideBox checkbox fr mr20" ng-click="changeW()">
            <input type = "checkbox" name = "example" ng-model = "currTable.isShowAll" style="width: 100px; margin-top: 8px;">
            <label style="font-size: 12px;line-height: 34px;">显示隐藏字段</label>
        </div>

        <!--字段的添加-->
        <div class = "fr mr20">
            <label ng-click="counter()" class="cp"><i class="plus icon"></i>添加字段</label>
        </div>
    </div>


    <!--表的处理-->

    <div id = "tableBox">
        <style>
            .pd60{
                padding-top: 64px;
            }
            .pd20{
                padding-top: 84px;
            }
            .pd0{
                padding: 1px !important;
            }
        </style>
        <table id="tableLayout" class = "ui celled striped table" style="margin: 0;"  ng-show="!tableLayout.thLayout && currIbmTable.columns!=null"  ng-class="{'pd20':tablesCard.length>0,'pd60':tablesCard.length==0}">
            <caption></caption>
            <thead class="Top">
            <tr ng-if="tablesCard.length>0">
                <th ng-repeat = "item in currIbmTable.columns">
                    <div ng-repeat="table in tablesCard" ng-if="table.table.tbId==item.refTbId">
                        <i class="table icon"></i>{{table.table.tableDesc}}表
                    </div>
                </th>
            </tr>
            <tr>
                <th ng-class="{'pd0':tablesCard.length>0,'bgColor':!item.isShow,'myTh':true}" ng-repeat = "item in currIbmTable.columns" ng-show = "item.isShow || currTable.isShowAll" title="{{ item.columnDesc }}">

                    <div class="clearfix" style="position: relative;height:38px">
                        <div class="thEditable">
                            <span ng-hide="setColName.index==$index">{{ item.columnDesc }}</span>
                            <div class="ui input">
                                <input type="text" ng-model="setColName.value" ng-show="setColName.index==$index" ng-blur="remaneMyTd($index)" ng-keydown="keyEnter($event,$index)" style="max-width: 120px;"/>
                            </div>
                        </div>

                        <div class="fr clearfix thTool" ng-hide="setColName.index==$index  || aggregateAble || mulRelationAble">
                            <div class = "ui dropdown fl">
                                <i class = "dropdown icon"></i>
                                <div class = "menu">
                                    <div class = "item" ng-click = "thRename($index,item.columnDesc)">重命名</div>
                                    <div class = "item" ng-click = "hideTableTd($index,0)" ng-if = "!item.isShow">不隐藏</div>
                                    <div class = "item" ng-click = "hideTableTd($index,1)" ng-if = "item.isShow">隐藏</div>
                                    <div class="item"><i class="dropdown icon"></i> 汇总
                                        <div class="menu">
                                            <div class="item" ng-click="tableAgg('count',$index)">计数</div>
                                            <div class="item" ng-click="tableAgg('sum',$index)">总和</div>
                                            <div class="item" ng-click="tableAgg('max',$index)">最大值</div>
                                            <div class="item" ng-click="tableAgg('min',$index)">最小值</div>
                                            <div class="item" ng-click="tableAgg('avg',$index)">平均值</div>
                                        </div>
                                    </div>
                                    <div class="item" ng-click="tableAgg('group',$index)">分类</div>
                                </div>

                            </div>
                            <i ng-class="{'sort content descending icon cp fl':reverse,'sort content ascending icon cp fl':!reverse}" ng-click="sortByKey(item.fieldName)"></i>
                        </div>
                    </div>
                </th>
            </tr>
            </thead>
            <tbody>
            <tr dir-paginate = "item in currIbmTable.datas | orderBy: sortKey : reverse | itemsPerPage: numInPerPage track by $index" total-items="totalSize" current-page="pagination.current" pagination-id="myTable">
                <td title="{{item[item2.fieldName]}}" ng-repeat = "item2 in currIbmTable.columns track by $index" ng-show = "item2.isShow || currTable.isShowAll">
                    <div style="">{{item[item2.fieldName]}}</div>
                </td>
            </tr>

            </tbody>
        </table>

        <!--tableLayout.thLayout-->
       <!-- <table id="thLayout" class="ui celled striped table grey" style="margin-top:0;display: none" ng-show="tableLayout.thLayout">
            <thead>
            <tr>
                <th>字段名</th>
                <th>表</th>
                <th>表字段名</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="item in currIbmTable.columns track by $index" ng-show = "item.isShow || currTable.isShowAll" ng-class = "{'bgColor':!item.isShow}">
                <td>
                    <span ng-hide="setColName.index==$index">{{ item.columnDesc }}</span>
                    <div class="ui input">
                        <input type="text" ng-model="setColName.value" ng-show="setColName.index==$index" ng-blur="remaneMyTd($index)" ng-keydown="keyEnter($event,$index)"/>
                    </div>
                    <div class = "ui dropdown fr">
                        <i class = "dropdown icon"></i>
                        <div class = "menu">
                            <div class = "item" ng-click = "thRename($index,item.columnDesc)">重命名</div>
                            <div class = "item" ng-click = "hideTableTd($index,0)" ng-if = "!item.isShow">不隐藏</div>
                            <div class = "item" ng-click = "hideTableTd($index,1)" ng-if = "item.isShow">隐藏</div>
                            <div class="item"><i class="dropdown icon"></i> 分类汇总
                                <div class="menu">
                                    <div class="item" ng-click="tableAgg('count')">计数</div>
                                    <div class="item" ng-click="tableAgg('sum')">和值</div>
                                    <div class="item" ng-click="tableAgg('max')">最大值</div>
                                    <div class="item" ng-click="tableAgg('min')">最小值</div>
                                    <div class="item" ng-click="tableAgg('avg')">平均值</div>
                                    <div class="item" ng-click="tableAgg('group')">分类字段</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </td>
                <td>
                    <span>{{fyTable.tableName}}</span><span ng-show="table2" style="padding-left: 10px;"><i class="unlinkify icon"></i>  {{table2.tableName}}</span>

                    <div ng-show = "linkPanel.dragTable.tableDesc!=null">
                        <span>{{linkPanel.dragTable.tableDesc}}</span><span ng-show="linkPanel.dropTable" style="padding-left: 10px;"><i class="unlinkify icon"></i>  {{linkPanel.dropTable.tableDesc}}</span>
                    </div>

                </td>
                <td>
                    {{ item.fieldName }}
                </td>
            </tr>
            </tbody>

        </table>-->


        <!--暂无数据-->
        <!--<p ng-show="currTable.hasNullData && !tableLayout.thLayout" id="nullData"> 暂无数据</p>-->
        <p ng-show="currTable.hasNullData" id="nullData"> 暂无数据</p>

    </div>
    <!--  -->
    <div ng-show="!tableLayout.thLayout && !aggregateAble && !relationAble && currIbmTable.datas && !mulRelationAble"  class="mt10 tc" style="height:40px;">

        <dir-pagination-controls
                direction-links="true"
                boundary-links="true"
                on-page-change="pageChanged(newPageNumber)" pagination-id="myTable"></dir-pagination-controls>

        <!--<div class="fr ui pagination menu" style="margin-right: 20px;">
            <a class="item" ng-click="rowsInit(10,$event)">10</a>
            <a class="item active" ng-click="rowsInit(25,$event)">25</a>
            <a class="item" ng-click="rowsInit(50,$event)">50</a>
            <a class="item" ng-click="rowsInit(100,$event)">100</a>
        </div>-->

    </div>
    <!--汇总表的按钮-->
    <div ng-show = "aggregateAble" class = "actions tc">
        <button class = "ui button" ng-click = "cancelAggregatetable()">取消</button>
        <button class = "ui button red" ng-click = "saveAggregatetable()">保存该汇总表</button>
    </div>

</div>
</div>


